public class syncer 
{
    private native int reg(String user, String dir);
    private native int login(String user, String passwd , String dir);
    private native int setDIR(String dir);
    private native int sync(String user , String passwd , String dir);

    static {
	//System.out.println( System.getProperty("java.library.path"));
	//System.setProperty("java.library.path", ".");
	System.loadLibrary("syncer");
    }

    public static void main(String[] args)
    {
	
    	System.out.println( System.getProperty("java.library.path"));
    	syncer g = new syncer();
    	
    	int result;
    	g.reg("alan","/home/niuniu/server");
		//g.login("alan","alan");
    	//result = g.setDIR("/home/niuniu/server");
    	//result = g.sync("alan","alan","/home/niuniu/server");
	
    }

    
}
